package com.happypets.daoImpl;

import java.util.List;
import java.util.Map;

import com.happypets.dao.ManagerDao;
import com.happypets.utils.DBUtils;

public class ManagerDaoImpl implements ManagerDao {

	private static DBUtils db = null;
	
	static{
		db = new DBUtils();
	}
	
	public List<Map<String, String>> query(String sql) {
		return db.queryByList(sql);
	}

	@Override
	public int excuteSql(String sql) {
		return db.execute(sql);
	}

	@Override
	public int[] prepareExcuteSql(String[] sqls) {
		// TODO Auto-generated method stub
		return db.updateBatch(sqls);
	}

}
